# -*- coding: utf-8 -*-

from flask import Flask

from autoscrapy.server import crawllink

app = Flask(__name__)


# Add your url controller
def add_url(controller):
    app.add_url_rule(
        controller.get_url(),
        endpoint = controller.get_name(),
        view_func=controller(),
        methods=controller.allow_methods()
    )

add_url(crawllink.crawlLink)
